package com.crm.business.admin.mapper;

import com.crm.business.servlet.BaseMapper;
import com.crm.common.admin.entity.BO.AdminAddressBookBO;
import com.crm.common.admin.entity.PO.AdminAddressBook;
import com.crm.common.ka.core.entity.BasePage;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 通讯录表 Mapper 接口
 * </p>
 *
 * @author zhangzhiwei
 * @since 2020-04-27
 */
public interface AdminAddressBookMapper extends BaseMapper<AdminAddressBook> {

    /**
     * 查询用户列表
     * @param adminUserBO data
     * @param page 分页参数
     * @return data
     */
    BasePage<AdminAddressBook> queryUserPage(BasePage<AdminAddressBook> page, @Param("data") AdminAddressBookBO adminUserBO);

    /**
     * 查询用户列表
     * @return data
     */
    List<AdminAddressBook> queryUserList();

    AdminAddressBook queryAddressBookByUserId(@Param("userId") Long userId);

}
